<?php
//adding line Vicky for testing
//error code definition class
//access values like: var $result = ErrorCode::successCreate;

class ErrorCode
{
    const successCreate = 11;
    const successRead = 21;
    const successUpdate = 31;
    const successDelete = 41;

//    append for parameter specific errors
    const failCreate = 12;
    const failRead = 22;
    const failUpdate = 32;
    const failDelete = 42;

    const authFailCreate = 13;
    const authFailRead = 23;
    const authFailUpdate = 33;
    const authFailDelete = 43;

    const integFailCreate = 14;
    const integFailRead = 24;
    const integFailUpdate = 34;
    const integFailDelete = 44;

    const sysError = 5;
}
